export interface Dataset {
    id: string;
    name: string;
    avatarUrl: string;
    welcomeMsg: string;
    description?: string;
    placeholder: string;
}

export interface ChatMessage {
    conversationId?: string;
    role: "user" | "assistant" | "system";
    content: string;
    time?: string | null;
    datasetId?: string | null;
    extLinks?: ExtLink[] | null;
    extDetails?: ExtDetails | null;
}


export interface ExtLink {
    name: string;
    url: string;
    distance: number;
}

export interface ExtDetails {
    funcName?: string;
    table?: Table;
}

export interface Table {
    dsName: string;
    tableNames: string[];
}
